<template>
  <div class="seach-card">
    <div class="search-card-header">
      <span>{{ title }}</span>
      <i class="el-icon-info" />
    </div>
    <div class="search-card-body">
      <div class="search-card-body-value">
        <span>{{ value1 }}</span>
        <span>{{ value2 }}</span>&nbsp;
        <slot />
      </div>
      <div>
        <slot name="searchFooter" />
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'SearchCard',
  props: {
    title: {
      type: String,
      default: ''
    },
    value1: {
      type: String,
      default: ''
    },
    value2: {
      type: String,
      default: ''
    }
  }
}
</script>
<style lang="scss" scoped>
.seach-card {
  padding: 20px 0px;
  .search-card-header {
    color: #bbb;
    span {
      margin-right: 30px;
    }
  }
  .search-card-body {
    .search-card-body-value {
      // padding:10px 0 0 0;
      padding-top: 10px;
      span {
        &:first-child {
          font-size: 26px;
          margin-right: 40px;
        }
      }
    }
  }
}
</style>
